<?php
/**
 * Created by PhpStorm.
 * User: zjx
 * Date: 2017/1/12
 * Time: 14:34
 */

namespace App\Services;


class AdminErrCode
{
    const UNKNOWN_ERROR = -1;

    const REQUEST_PARAMS_ERROR = 3001;
    const REQUEST_PARAMS_EMPTY = 3002;
    const REQUEST_PARAMS_TYPE_ERROR = 3003;
    const REQUEST_PARAMS_NOT_IN_RANGE = 3004;

    const INVALID_PASSWORD = 4000;  // 登录密码错误
    const WECHAT_USER_NOT_FOUND = 4001;
    const WECHAT_USER_INFO_AUTH_NEEDED = 4004;
    const ADMIN_AUTH_NOT_FOUND = 4006;

    const REQUEST_FAILED_PASS_VALIDATE = 4007;

    const AUTHORIZER_NOT_FOUND = 4011;
    const WECHAT_USER_NOT_MATCHED = 4021;

    const OPERATOR_NOT_ALLOWED = 4031;
    const OPERATE_FAILED = 4032;

    const DB_ITEM_NOT_FOUND = 5001;
    const DB_NOT_EDITABLE = 5011;
    const DB_EDIT_FAILED = 5012;

    const CUSTOMIZE_ERROR = 5013;  // 用户自定义的错误

    const TOKEN_GENERATE_FAIL = 6000; // 无法生成token

    const TOKEN_ERROR = 6001;        // token错误

    const JWT_TOKEN_NOT_FOUND = 7002; // token参数不能为空

    // VENDOR 直播地址 NOT FOUND
    const HLS_NOT_FOUND = 5100;

    const AUTHORIZE_ERROR_ID_UNKNOWN = 9001;  // 登录认证权限错误
}

